package com.rwx.myjava03_springboot02.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.rwx.myjava03_springboot02.entity.BookUser;
import com.rwx.myjava03_springboot02.mapper.BookUserMapper;
import com.rwx.myjava03_springboot02.service.BookUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookUserServiceImpl implements BookUserService {
    @Autowired
    private BookUserMapper bookUserMapper;
    @Override
    public List<BookUser> getBookList() {
        Wrapper<BookUser> wrap=new QueryWrapper<>();

        List<BookUser> bookUsers = bookUserMapper.selectList(wrap);
        return bookUsers;
    }
}
